<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    <title>CUPS 资料 | jouyouyun&#39;s blog</title>
    <meta name="viewport" content="width=device-width,minimum-scale=1">
    <meta name="description" content="Installation
sudo apt install cups ghostscript gsfonts
Driver


gutenprint
一组质量非常好的驱动集合，支持的目标机型包括 Canon, Epson, Lexmark, Sony, Olympus ；以及配合 CUPS/GhostSscript/Foomatic/GIMP 使用的 PCL printers 。
安装包: cups-driver-gutenprint gimp-gutenprint ijsgutenprint printer-driver-gutenprint


foomatic
Foomatic 是一个基于数据库的，集成自由软件打印机驱动和脱机打印程序的系统。
安装包: foomatic-db foomatic-db-engine foomatic-db-compressed-ppds foomatic-db-gutenprint foomatic-filters 以及 foomatic-db-nonfree

">
    <meta name="generator" content="Hugo 0.105.0">
    
    
    
    
      <meta name="robots" content="noindex, nofollow">
    

    
<link rel="stylesheet" href="/ananke/css/main.min.css" >



    
    
    
      

    

    
    
    <meta property="og:title" content="CUPS 资料" />
<meta property="og:description" content="Installation
sudo apt install cups ghostscript gsfonts
Driver


gutenprint
一组质量非常好的驱动集合，支持的目标机型包括 Canon, Epson, Lexmark, Sony, Olympus ；以及配合 CUPS/GhostSscript/Foomatic/GIMP 使用的 PCL printers 。
安装包: cups-driver-gutenprint gimp-gutenprint ijsgutenprint printer-driver-gutenprint


foomatic
Foomatic 是一个基于数据库的，集成自由软件打印机驱动和脱机打印程序的系统。
安装包: foomatic-db foomatic-db-engine foomatic-db-compressed-ppds foomatic-db-gutenprint foomatic-filters 以及 foomatic-db-nonfree

" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://jouyouyun.github.io/post/cups-notes/" /><meta property="article:section" content="post" />
<meta property="article:published_time" content="2018-04-08T21:38:21+08:00" />
<meta property="article:modified_time" content="2019-02-12T14:31:34+08:00" />

<meta itemprop="name" content="CUPS 资料">
<meta itemprop="description" content="Installation
sudo apt install cups ghostscript gsfonts
Driver


gutenprint
一组质量非常好的驱动集合，支持的目标机型包括 Canon, Epson, Lexmark, Sony, Olympus ；以及配合 CUPS/GhostSscript/Foomatic/GIMP 使用的 PCL printers 。
安装包: cups-driver-gutenprint gimp-gutenprint ijsgutenprint printer-driver-gutenprint


foomatic
Foomatic 是一个基于数据库的，集成自由软件打印机驱动和脱机打印程序的系统。
安装包: foomatic-db foomatic-db-engine foomatic-db-compressed-ppds foomatic-db-gutenprint foomatic-filters 以及 foomatic-db-nonfree

"><meta itemprop="datePublished" content="2018-04-08T21:38:21+08:00" />
<meta itemprop="dateModified" content="2019-02-12T14:31:34+08:00" />
<meta itemprop="wordCount" content="171">
<meta itemprop="keywords" content="cups," /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="CUPS 资料"/>
<meta name="twitter:description" content="Installation
sudo apt install cups ghostscript gsfonts
Driver


gutenprint
一组质量非常好的驱动集合，支持的目标机型包括 Canon, Epson, Lexmark, Sony, Olympus ；以及配合 CUPS/GhostSscript/Foomatic/GIMP 使用的 PCL printers 。
安装包: cups-driver-gutenprint gimp-gutenprint ijsgutenprint printer-driver-gutenprint


foomatic
Foomatic 是一个基于数据库的，集成自由软件打印机驱动和脱机打印程序的系统。
安装包: foomatic-db foomatic-db-engine foomatic-db-compressed-ppds foomatic-db-gutenprint foomatic-filters 以及 foomatic-db-nonfree

"/>

	
  </head>

  <body class="ma0 avenir bg-near-white">

    
   
  

  <header>
    <div class="bg-black">
      <nav class="pv3 ph3 ph4-ns" role="navigation">
  <div class="flex-l justify-between items-center center">
    <a href="/" class="f3 fw2 hover-white no-underline white-90 dib">
      
        jouyouyun&#39;s blog
      
    </a>
    <div class="flex-l items-center">
      

      
        <ul class="pl0 mr3">
          
          <li class="list f5 f4-ns fw4 dib pr3">
            <a class="hover-white no-underline white-90" href="/post/" title="Archives 页">
              Archives
            </a>
          </li>
          
          <li class="list f5 f4-ns fw4 dib pr3">
            <a class="hover-white no-underline white-90" href="/tags/" title="Tags 页">
              Tags
            </a>
          </li>
          
          <li class="list f5 f4-ns fw4 dib pr3">
            <a class="hover-white no-underline white-90" href="/categories/" title="Categories 页">
              Categories
            </a>
          </li>
          
        </ul>
      
      
<div class="ananke-socials">
  
    <a href="https://github.com/jouyouyun" target="_blank" class="github ananke-social-link link-transition stackoverflow link dib z-999 pt3 pt0-l mr1" title="GitHub link" rel="noopener" aria-label="follow on GitHub——Opens in a new window">
      
        <span class="icon"><svg style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512"  xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" >
  <path d="M256,32C132.3,32,32,134.8,32,261.7c0,101.5,64.2,187.5,153.2,217.9c11.2,2.1,15.3-5,15.3-11.1   c0-5.5-0.2-19.9-0.3-39.1c-62.3,13.9-75.5-30.8-75.5-30.8c-10.2-26.5-24.9-33.6-24.9-33.6c-20.3-14.3,1.5-14,1.5-14   c22.5,1.6,34.3,23.7,34.3,23.7c20,35.1,52.4,25,65.2,19.1c2-14.8,7.8-25,14.2-30.7c-49.7-5.8-102-25.5-102-113.5   c0-25.1,8.7-45.6,23-61.6c-2.3-5.8-10-29.2,2.2-60.8c0,0,18.8-6.2,61.6,23.5c17.9-5.1,37-7.6,56.1-7.7c19,0.1,38.2,2.6,56.1,7.7   c42.8-29.7,61.5-23.5,61.5-23.5c12.2,31.6,4.5,55,2.2,60.8c14.3,16.1,23,36.6,23,61.6c0,88.2-52.4,107.6-102.3,113.3   c8,7.1,15.2,21.1,15.2,42.5c0,30.7-0.3,55.5-0.3,63c0,6.1,4,13.3,15.4,11C415.9,449.1,480,363.1,480,261.7   C480,134.8,379.7,32,256,32z"/>
</svg>
</span>
      
<span class="new-window"><svg  height="8px"  style="enable-background:new 0 0 1000 1000;" version="1.1" viewBox="0 0 1000 1000"  xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" >
<path d="M598 128h298v298h-86v-152l-418 418-60-60 418-418h-152v-86zM810 810v-298h86v298c0 46-40 86-86 86h-596c-48 0-86-40-86-86v-596c0-46 38-86 86-86h298v86h-298v596h596z" style="fill-rule:evenodd;clip-rule:evenodd;"/>
</svg>
</span></a>
  
</div>

    </div>
  </div>
</nav>

    </div>
  </header>



    <main class="pb7" role="main">
      
  
  <article class="flex-l flex-wrap justify-between mw8 center ph3">
    <header class="mt4 w-100">
      <aside class="instapaper_ignoref b helvetica tracked">
          
        POSTS
      </aside>
      










  <div id="sharing" class="mt3 ananke-socials">
    
  </div>


      <h1 class="f1 athelas mt3 mb1">CUPS 资料</h1>
      
      <p class="tracked">
         <strong>jouyouyun</strong>
      </p>
      
      
      
      <time class="f6 mv4 dib tracked" datetime="2018-04-08T21:38:21+08:00">四月 8, 2018</time>
      

      
      
    </header>
    <div class="nested-copy-line-height lh-copy serif f4 nested-links mid-gray pr4-l w-two-thirds-l"><h2 id="installation">Installation</h2>
<p><code>sudo apt install cups ghostscript gsfonts</code></p>
<h2 id="driver">Driver</h2>
<ul>
<li>
<p>gutenprint</p>
<p>一组质量非常好的驱动集合，支持的目标机型包括 <code>Canon, Epson, Lexmark, Sony, Olympus</code> ；以及配合 <code>CUPS/GhostSscript/Foomatic/GIMP</code> 使用的 <code>PCL printers</code> 。</p>
<p>安装包: <code>cups-driver-gutenprint gimp-gutenprint ijsgutenprint printer-driver-gutenprint</code></p>
</li>
<li>
<p>foomatic</p>
<p><code>Foomatic</code> 是一个基于数据库的，集成自由软件打印机驱动和脱机打印程序的系统。</p>
<p>安装包: <code>foomatic-db foomatic-db-engine foomatic-db-compressed-ppds foomatic-db-gutenprint foomatic-filters</code> 以及 <code>foomatic-db-nonfree</code></p>
</li>
</ul>
<ul>
<li>
<p>foo2zjs</p>
<p><code>Drivers for ZjStream protocol printers such as the HP Laserjet 1018.</code></p>
<p>安装包: <code>printer-driver-foo2zjs</code></p>
</li>
<li>
<p>hplip</p>
<p><code>HP GNU/Linux</code> 驱动. 支持 <code>DeskJet, OfficeJet, Photosmart, Business Inkjet</code> 和一些 <code>LaserJet printer</code> 型的, 以及一些兄弟打印机。</p>
<p>安装包: <code>hplip hplip-gui hplip-plugin</code></p>
</li>
<li>
<p>splix</p>
<p>三星驱动，支持 <code>SPL</code> 打印机(<code>SPL：Samsung Printer Language</code>)  (<code>USB</code> 打印机要配合 <code>cups-usblp</code> 使用)</p>
<p>安装包: <code>printer-driver-splix splix samsung-printers samsung-print firmware-samsung</code></p>
</li>
<li>
<p>cndrvcups</p>
<p>佳能 <code>UFR2</code> 驱动，支持 <code>LBP, iR</code> 和 <code>MF</code> 系列打印机.</p>
<p>安装包: <code>cndrvcups-capt cndrvcups-ufr2-uk cndrvcups-ufr2lt-uk cndrvcups-utility</code></p>
</li>
<li>
<p>cups-pdf</p>
<p><code>PDF</code> 虚拟打印机，这个东西可以把发送给他的打印任务输出为 <code>PDF</code> 文件。</p>
</li>
</ul>
<p>这些驱动可以全部预装。</p>
<p>有些打印机需要 <code>PPD</code> 文件，上面的驱动会自带一部分，如果没有就需要去查找了：</p>
<ul>
<li>到源里查找，包括其他发行版，如 <a href="https://wiki.archlinux.org/index.php/AUR">aur</a> 中找</li>
<li>到 <a href="http://www.openprinting.org/printers">OpenPrinting database</a> 选择制造商和型号</li>
<li>到制造商官网查找</li>
</ul>
<hr>
<h2 id="configuration">Configuration</h2>
<p>配置文件在 <code>/etc/cups</code> 这个目录，为了方便排错，建议把 <code>/etc/cups/cupsd.conf</code> 中 <code>LogLevel</code> 设置为 <code>debug2</code>.</p>
<h3 id="usb-打印机">USB 打印机</h3>
<p>使用 <code>lsusb</code> 查看设备。</p>
<p>需要加载模块 <code>usbcore</code>, 有的打印机还需要加载 <code>usblp</code> 而有的需要把它屏蔽</p>
<h3 id="并口打印机">并口打印机</h3>
<p>使用 <code>sudo dmesg | grep -i parport</code> 查看设备</p>
<p>需要加载模块 <code>lp parport parport_pc</code></p>
<p>有些使用 <code>usb to parallel</code> 的打印机可能无法识别，需要使用不同的连接方式，并将 <code>DeviceID</code> 写入到文件 <code>/etc/cups/printers.conf=，如 =DeviceID = parallel:/dev/usb/lp0</code></p>
<hr>
<h2 id="links">Links</h2>
<ul>
<li><a href="https://wiki.archlinux.org/index.php/CUPS">Arch Wiki CUPS</a></li>
<li><a href="https://wiki.archlinux.org/index.php/CUPS/Troubleshooting">Troubleshooting</a></li>
<li><a href="https://wiki.archlinux.org/index.php/CUPS/Printer-specific%5Fproblems">Arch Printer Driver</a></li>
<li><a href="https://wiki.deepin.org/index.php?title=%E6%89%93%E5%8D%B0%E6%9C%BA">Deepin Wiki CUPS</a></li>
</ul><ul class="pa0">
  
   <li class="list di">
     <a href="/tags/cups" class="link f5 grow no-underline br-pill ba ph3 pv2 mb2 dib black sans-serif">cups</a>
   </li>
  
</ul>
<div class="mt6 instapaper_ignoref">
      
      
      </div>
    </div>

    <aside class="w-30-l mt6-l">




</aside>

  </article>

    </main>
    <footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
  <div class="flex justify-between">
  <a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="https://jouyouyun.github.io" >
    &copy;  jouyouyun 2023 
  </a>
    <div>
<div class="ananke-socials">
  
    <a href="https://github.com/jouyouyun" target="_blank" class="github ananke-social-link link-transition stackoverflow link dib z-999 pt3 pt0-l mr1" title="GitHub link" rel="noopener" aria-label="follow on GitHub——Opens in a new window">
      
        <span class="icon"><svg style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512"  xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" >
  <path d="M256,32C132.3,32,32,134.8,32,261.7c0,101.5,64.2,187.5,153.2,217.9c11.2,2.1,15.3-5,15.3-11.1   c0-5.5-0.2-19.9-0.3-39.1c-62.3,13.9-75.5-30.8-75.5-30.8c-10.2-26.5-24.9-33.6-24.9-33.6c-20.3-14.3,1.5-14,1.5-14   c22.5,1.6,34.3,23.7,34.3,23.7c20,35.1,52.4,25,65.2,19.1c2-14.8,7.8-25,14.2-30.7c-49.7-5.8-102-25.5-102-113.5   c0-25.1,8.7-45.6,23-61.6c-2.3-5.8-10-29.2,2.2-60.8c0,0,18.8-6.2,61.6,23.5c17.9-5.1,37-7.6,56.1-7.7c19,0.1,38.2,2.6,56.1,7.7   c42.8-29.7,61.5-23.5,61.5-23.5c12.2,31.6,4.5,55,2.2,60.8c14.3,16.1,23,36.6,23,61.6c0,88.2-52.4,107.6-102.3,113.3   c8,7.1,15.2,21.1,15.2,42.5c0,30.7-0.3,55.5-0.3,63c0,6.1,4,13.3,15.4,11C415.9,449.1,480,363.1,480,261.7   C480,134.8,379.7,32,256,32z"/>
</svg>
</span>
      
<span class="new-window"><svg  height="8px"  style="enable-background:new 0 0 1000 1000;" version="1.1" viewBox="0 0 1000 1000"  xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" >
<path d="M598 128h298v298h-86v-152l-418 418-60-60 418-418h-152v-86zM810 810v-298h86v298c0 46-40 86-86 86h-596c-48 0-86-40-86-86v-596c0-46 38-86 86-86h298v86h-298v596h596z" style="fill-rule:evenodd;clip-rule:evenodd;"/>
</svg>
</span></a>
  
</div>
</div>
  </div>
</footer>

  </body>
</html>
